<?php

namespace App\Containers\AppSection\File\Actions;

use App\Containers\AppSection\File\Tasks\DownloadFileTask;
use App\Containers\AppSection\File\UI\API\Requests\DownloadFileRequest;
use App\Ship\Parents\Actions\Action;
use Symfony\Component\HttpFoundation\StreamedResponse;

class DownloadFileAction extends Action
{
    public function run(DownloadFileRequest $request): StreamedResponse
    {
        return app(DownloadFileTask::class)->run($request->id);
    }
}
